PHP for the Web by Larry Ullman

PHP for the Web by Larry Ullman

Author:Larry Ullman
Language: eng
Format: epub, pdf
Publisher: Pearson Education
Published: 2006-06-22T16:00:00+00:00


This concludes the main conditional, which checks whether the form has been submitted. If it hasn’t been, then the form is displayed. The form itself is very simple (Figure 8.15).

Figure 8.15 This simple login page takes an email address and a password.

In order for this process to work—where the same page both handles and displays the form—the name attribute of your hidden input must exactly match the name of the variable used as the conditional (and it’s case-sensitive, remember).

7. Require the footer file and complete the PHP page:

require('templates/footer.html');

?>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.